package com.zusmart.core.bean.support;

import com.zusmart.core.bean.BeanDefinitionRegistry;
import com.zusmart.core.bean.BeanDefinitionResolver;
import com.zusmart.core.bean.BeanDefinitionType;
import com.zusmart.core.bean.BeanInstanceCreator;

public class BeanDefinitionForClass extends AbstractBeanDefinition {

	public BeanDefinitionForClass(BeanDefinitionResolver beanDefinitionResolver, BeanDefinitionRegistry beanDefinitionRegistry, String beanName, String beanScope, Class<?> beanClass) {
		super(beanDefinitionResolver, beanDefinitionRegistry, beanName, beanScope, beanClass);
	}

	@Override
	protected BeanInstanceCreator createBeanInstanceCreator() {
		return new BeanInstanceCreatorForClass(this);
	}
	
	@Override
	public BeanDefinitionType getBeanType() {
		return BeanDefinitionType.Class;
	}

}